package org.example.stat;

public class BuyHouseProxy implements BuyHouse {
    private BuyHouse buyHouse;

    @Override
    public void buy() {
        System.out.println("search house");
        buyHouse.buy();
        System.out.println("pay fee");
    }

    public BuyHouseProxy(BuyHouse buyHouse) {
        this.buyHouse = buyHouse;
    }
}
